package com.orangelife.session;

import java.io.Serializable;
import java.util.Set;

/**
 * 会话对象
 * 
 * @author lance
 * 
 */
public interface Session extends Serializable {

	public static final String LOGIN_SESSION_CONTEXT = "login_session_context";

	public static final String TRANS_TOKEN = "trans_token";

	public String getId();

	public long getCreationTime();

	public long getLastAccessedTime();

	public void invalidate();

	public void setAttibute(String key, Object value);

	public Object getAttribute(String key);

	public Set<String> getAttributeKeys();

}
